import axios from '@/libs/api.request'

export const list = (paras) => {
  return axios.request({
    url: '/admin/record/list',
    params: paras,
    method: 'get'
  })
}

export const save = (data) => {
  return axios.request({
    url: '/admin/record/save',
    data,
    method: 'post'
  })
}

export const updateT = (data) => {
  return axios.request({
    url: '/admin/record/updateT',
    data,
    method: 'post'
  })
}

export const del = (data) => {
  return axios.request({
    url: '/admin/record/delete',
    data,
    method: 'post'
  })
}

export const batchDelete = (data) => {
  return axios.request({
    url: '/admin/record/batchDelete',
    data,
    method: 'post'
  })
}

export const releaseRecordList = (data) => {
  return axios.request({
    url: '/admin/record/releaseRecordList',
    data,
    method: 'post'
  })
}

export const teacherReleaseRecordList = (data) => {
  return axios.request({
    url: '/admin/record/teacherReleaseRecordList',
    data,
    method: 'post'
  })
}

export const teacherReleaseRecordDel = (data) => {
  return axios.request({
    url: '/admin/record/teacherReleaseRecordDel',
    data,
    method: 'post'
  })
}
